Q: How many read-only attributes are present in the navigator object?
Solution: The navigator object contains information about the browser. There are a total of 2 read-only attributes present in the navigator object namely: redirectCount type.
Q: Why are HTTP redirects significant?
Solution: HTTP redirects are significant because they cause a complete roundtrip for each redirect. The original request is returned from the web server as either a 301 or a 302 with the path to the new location.
Q: Where does the DNS reply go to in a single HTTP redirect?
Solution: DNS is a query/response protocol. The client queries information (for example the IP address corresponding to www.google.com) in a single UDP request. The DNS reply goes to the Browser in a single HTTP redirect.
Q: How can one access the redirectCount property?
Solution: The redirectCount property can be accessed as performance.navigation.redirectCount. The PerformanceNavigation.redirectCount read-only property returns an unsigned short representing the number of REDIRECTs done before reaching the page.
Q: How many constant values can the property type be represented?
Solution: The type property sets or returns the value of the type attribute of an
Q: Which of the following constants has the value 255?
Solution: TYPE_BACK_FORWARD performs navigation through a history traversal operation. TYPE_RESERVED Has the value of 255 and is a catch-all for any navigation type not defined above.
Q: What is the purpose of the constant TYPE_RELOAD?
Solution: TYPE_RELOAD: Has the value of 1, indicating that the current page was arrived at via a reload operation. TYPE_RELOAD performs navigation through the reload operation or the location.reload() method.
Q: What does the constant TYPE_BACK_FORWRD indicate?
Solution: TYPE_BACK_FORWARD performs navigation through a history traversal operation. TYPE_BACK_FORWARD Has the value of 2, indicating that the page was navigated to via the browser history, either using the back or forward buttons or programmatically through the browser’s history object.
Q: Which of the following constants hold the value 2?
Solution: TYPE_BACK_FORWARD performs navigation through a history traversal operation. TYPE_BACK_FORWARD: Has the value of 2, indicating that the page was navigated to via the browser history, either using the back or forward buttons or programmatically through the browser’s history object.
Q: Where does the DNS Lookup direct to ?
Solution: DNS is a query/response protocol. The client queries an information (for example the IP address corresponding to www.google.com) in a single UDP request. The DNS Lookup directs to the DNS Server.
You Have Score    | /10 |